package online.longzipeng.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lzp
 * @Description: groovy script auto generate
 */
@Data
@TableName("push_message")
@AllArgsConstructor
@NoArgsConstructor
public class PushMessage implements Serializable {

	/**
	 * id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * content
	 */
	private String content;

	/**
	 * createTime
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 1点赞 2收藏 3转发 4投币
	 */
	private Integer messageType;

	/**
	 * 接收者id
	 */
	private Integer toUserId;

	/**
	 * 创建者
	 */
	private Integer userId;

	/**
	 * 动态id
	 */
	private Integer dynamicId;

	/**
	 * 0未读 1已读
	 */
	private Integer status;

}
